import matplotlib.pyplot as plt

x = [a for a in range(10)]
# y1 = [a * a for a in x]
# y2 = [a + 5 for a in y1]
y = [[a * a for a in x], [a + 5 for a in x]]


print(y)
plt.xlim(0, max(x) + 1)  # 稍微扩展范围以确保(0,0)在内
plt.ylim(0, 100)
for i in y:
    plt.plot(x, i, marker="o")
# plt.plot(x, y2, marker="o")
plt.show()
